package com.victor.service;

import java.util.List;

import org.springframework.web.multipart.MultipartFile;

import com.victor.entity.Option;
import com.victor.entity.Question;

public interface QuestionnaireService {

	/**
	 * 获取问卷调查列表
	 * 
	 * @return
	 */
	public List<Question> getAll();

	/**
	 * 添加问题
	 * 
	 * @param question
	 * @return
	 */
	public int addQuestion(Question question);

	/**
	 * 添加选项
	 * 
	 * @return
	 */
	public int addOptions(List<Option> options);

	/**
	 * 修改问题
	 * 
	 * @param question
	 * @return
	 */
	public int updateQuestion(Question question);

	/**
	 * 通过问题id删除所有选项
	 * 
	 * @param id
	 */
	public int deleteOption(Integer id);

	/**
	 * 删除提问
	 * 
	 * @param qid
	 */
	public int deleteQuestion(int qid);

	/**
	 * 批量导入问卷调查
	 * 
	 * @param file
	 * @return
	 */
	public String importQuestion(MultipartFile file,String adminid);
}
